import requests
import logging
from . import helper

logger = logging.getLogger('bookloft.http')

@helper.logging_ctx(logger)
def get(url,query=None):
    r = requests.get(url,query)
    return r

@helper.logging_ctx(logger)
def post(url, data=None):
    r = requests.post(url,json=data)
    return r
